//
//  ObjectSprite.h
//  Soccer
//
//  Created by Hyun-Woong Kim on 09. 05. 06.
//  Copyright 2009 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "Sprite.h"

@class ObjectSprite;

@protocol ObjectSpriteDelegate

@optional
- (NSString *)getFileName;
- (void)spriteNeedsInit:(ObjectSprite *)sprite;
- (void)spriteNeedsUpdates:(ObjectSprite *)sprite;

@end

/**
 ObjectSprite
 */
@interface ObjectSprite : Sprite
{
	id<ObjectSpriteDelegate> _delegate;
}

@property(nonatomic,retain) id<ObjectSpriteDelegate> delegate;

- (id)initWithDelegate:(id<ObjectSpriteDelegate>)movableObject;
- (void)setZOrder:(int)z;
- (void)updatePosition;

@end
